package Welsy4.Connect.control
{
    import Welsy4.Connect.commands.*;
	import Welsy4.Connect.events.*;
	
    import com.adobe.cairngorm.control.FrontController;
        
    public class ConnectController extends FrontController
    {
        public function ConnectController()
        {
		   addCommand( CommonInfoEvent.COMMON_INFO, CommonInfoCommand );	
           addCommand( AuthenticationEvent.LOG_IN, LoginCommand  );
		   	   
		   addCommand( UserEvent.CREATE_USER, CreateUserCommand);
		   //addCommand( MeetingEvent.INIT_CREATE_MEETING, CreateMeetingCommand);
		   
		   addCommand( MeetingEvent.REPORT_MY_MEETING, ReportMyMeetingCommand);
		   
		   addCommand( MeetingEvent.HOST_SCO_SHORTCUT, SCOShortcutCommand);
		   
		   addCommand( MeetingEvent.CREATE_MEETING, CreatePublicMeetingCommand);
		   addCommand( MeetingEvent.GET_MEETING_ID, GetMeetingSCOidCommand);
		   addCommand( MeetingEvent.UPDATE_MEETING, UpdateMeetingCommand);
		   addCommand(MeetingEvent.DELETE_MEETING, DeleteMeetingCommand);
		   
		   
		   addCommand (PermissionEvent.SET_MEETING_PUBLIC, SetMeetingPublicCommand);
		   addCommand (PermissionEvent.SET_MEETING_PRIVATE, SetMeetingPrivateCommand);
		   addCommand (PermissionEvent.ADD_MEETING_PARTICIPANT, AddMeetingParticipantsCommand);
		   addCommand (PermissionEvent.REMOVE_MEETING_PARTICIPANT, RemoveMeetingParticipantsCommand);
		   addCommand(PermissionEvent.ALLOW_USER_TO_MEETING, AllowUserToMeetingCommand);
		   
		   addCommand (AuthenticationEvent.LOG_OUT, LogoutCommand);
		   
		   addCommand (AuthenticationEvent.SECURE_LOG_IN, SecureLoginCommand);
		   
		   addCommand(PrincipalListEvent.FIND_USER_BY_LOGIN, PrincipalListCommand);
		   addCommand(PrincipalListEvent.SET_CURRENT_USER_ID, SetCurrentUserIdCommand);
        }        
    }
}
